home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / g / gnu_c / make368b.zoo / make / src / diffs < prev    next >
Encoding:
Text File  |  1993-09-18  |  3.9 KB  |  160 lines

  1. diff -cr make-3.68.orig/job.c make-3.68/job.c
  2. *** make-3.68.orig/job.c    Thu Sep  9 11:21:08 1993
  3. --- make-3.68/job.c    Mon Sep  6 16:01:48 1993
  4. ***************
  5. *** 22,29 ****
  6. --- 22,37 ----
  7.   #include "file.h"
  8.   #include "variable.h"
  9.   
  10. + #ifdef atarist /* Modification for Atari ST */
  11. + #include <support.h> /* For findfile() */
  12. + #endif
  13. + #ifdef atarist /* Modifcation for Atari ST */
  14. + static char default_path[] = ":/bin:/usr/bin:/gnu/bin";
  15. + #else
  16.   /* Default path to search for executables.  */
  17.   static char default_path[] = ":/bin:/usr/bin";
  18. + #endif
  19.   
  20.   /* Default shell to use.  */
  21.   char default_shell[] = "/bin/sh";
  22. ***************
  23. *** 953,962 ****
  24. --- 961,998 ----
  25.      If successful, store the full pathname in PROGRAM and return 1.
  26.      If not sucessful, return zero.  */
  27.   
  28. + #ifdef atarist /* Atari ST modification */
  29. + static char *_extensions[] = { "ttp", "prg", "tos", "app", NULL };
  30. + #endif
  31.   static int
  32.   search_path (file, path, program)
  33.        char *file, *path, *program;
  34.   {
  35. + #ifdef atarist /* Modification for Atari ST */
  36. +   char *p;
  37. +       
  38. +   if (path == 0 || path[0] == '\0')
  39. +     path = default_path;
  40. +   
  41. +   if ((index (file, '/') != 0) || (index (file, '\\') != 0))
  42. +   {
  43. +     strcpy (program, file);
  44. +     return 1;
  45. +   }
  46. +   else
  47. +   {
  48. +     p = (char *) findfile (file, path, _extensions);
  49. +     if (p == NULL)
  50. +       return 0;
  51. +     else
  52. +     {
  53. +       strcpy (program, p);
  54. +       return 1;
  55. +     }
  56. +   }
  57. + #else /* Not Atari ST */
  58.     if (path == 0 || path[0] == '\0')
  59.       path = default_path;
  60.   
  61. ***************
  62. *** 1040,1045 ****
  63. --- 1076,1082 ----
  64.       }
  65.   
  66.     return 0;
  67. + #endif /* Atari ST modification */
  68.   }
  69.   
  70.   /* Replace the current process with one running the command in ARGV,
  71. diff -cr make-3.68.orig/main.c make-3.68/main.c
  72. *** make-3.68.orig/main.c    Thu Sep  9 11:21:10 1993
  73. --- make-3.68/main.c    Mon Sep  6 16:01:56 1993
  74. ***************
  75. *** 200,206 ****
  76. --- 200,210 ----
  77.   
  78.   /* The table of command switches.  */
  79.   
  80. + #ifdef atarist 
  81. + static struct command_switch switches[] =
  82. + #else
  83.   static const struct command_switch switches[] =
  84. + #endif
  85.     {
  86.       { 'b', ignore, 0, 0, 0, 0, 0, 0,
  87.       0, 0,
  88. diff -cr make-3.68.orig/make.h make-3.68/make.h
  89. *** make-3.68.orig/make.h    Thu Sep  9 11:21:28 1993
  90. --- make-3.68/make.h    Mon Sep  6 16:02:00 1993
  91. ***************
  92. *** 277,283 ****
  93.   #include <vfork.h>
  94.   #endif
  95.   
  96. ! #if !defined (__GNU_LIBRARY__) && !defined (POSIX)
  97.   
  98.   #ifdef    HAVE_SIGSETMASK
  99.   extern int sigsetmask ();
  100. --- 277,285 ----
  101.   #include <vfork.h>
  102.   #endif
  103.   
  104. ! /* Mintlib doesn't define POSIX yet...,
  105. ! but GCC complains about open() vs. open(arg1,...) */
  106. ! #if !defined (__GNU_LIBRARY__) && !defined (POSIX) && !defined (atarist)
  107.   
  108.   #ifdef    HAVE_SIGSETMASK
  109.   extern int sigsetmask ();
  110. diff -cr make-3.68.orig/read.c make-3.68/read.c
  111. *** make-3.68.orig/read.c    Thu Sep  9 11:21:12 1993
  112. --- make-3.68/read.c    Mon Sep  6 16:02:08 1993
  113. ***************
  114. *** 272,278 ****
  115.       filename = expanded;
  116.       }
  117.   
  118. !   infile = fopen (filename, "r");
  119.     /* Save the error code so we print the right message later.  */
  120.     makefile_errno = errno;
  121.   
  122. --- 272,283 ----
  123.       filename = expanded;
  124.       }
  125.   
  126. ! #ifdef atarist /* Modification for Atari ST */
  127. !   infile = fopen (filename, "rt");
  128. ! #else
  129. !   infile = fopen(filename, "r");
  130. ! #endif
  131.     /* Save the error code so we print the right message later.  */
  132.     makefile_errno = errno;
  133.   
  134. ***************
  135. *** 286,292 ****
  136.         for (i = 0; include_directories[i] != 0; ++i)
  137.       {
  138.         char *name = concat (include_directories[i], "/", filename);
  139. !       infile = fopen (name, "r");
  140.         if (infile == 0)
  141.           free (name);
  142.         else
  143. --- 291,301 ----
  144.         for (i = 0; include_directories[i] != 0; ++i)
  145.       {
  146.         char *name = concat (include_directories[i], "/", filename);
  147. ! #ifdef atarist /* Modification for Atari ST */
  148. !      infile = fopen (filename, "rt");
  149. ! #else
  150. !      infile = fopen(filename, "r");
  151. ! #endif
  152.         if (infile == 0)
  153.           free (name);
  154.         else
  155.  
  156.